package com.agp.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class PasswordDTO {
    //旧密码
    @ApiModelProperty(value = "旧密码", example = "123456",position = 1)
    @NotBlank(message = "旧密码不能为null、空字符串和空白串")
    private String oldPassword;

    //新密码
    @ApiModelProperty(value = "新密码", example = "123456",position = 2)
    @NotBlank(message = "新密码不能为null、空字符串和空白串")
    private String newPassword;

    //确认密码
    @ApiModelProperty(value = "确认密码", example = "123456",position = 3)
    private String confirmPassword;
}
